package com.itheima.admin.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.util.Date;

/**
 * @program: itheima-leadnews
 * @description: pojo类
 * @author: pw
 * @create: 2022-08-09 22:31
 **/
@Data
@TableName("ad_channel")
@ApiModel(description = "频道实体类")
public class AdChannel {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "name")
    @NotEmpty
    @Size(min = 1, max = 10, message = "数据长度在1-10之间")
    private String name;
    @TableField(value = "description")
    private String description;
    @TableField(value = "is_default")
    private Boolean isDefault;
    @TableField(value = "status")
    private Boolean status;
    @TableField(value = "ord")
    private Integer ord;
    @TableField(value = "created_time")
    private Date createdTime;

}
